package com.fh.shop.controller;/**
 * 描述:
 * Author:袁亚强
 * Date:2021/12/1312:56
 */

import com.fh.common.baseData.TongyiData;
import com.fh.shop.service.ShopService;
import com.fh.shop.service.TypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * created by macro on 2021/12/13,
 */
@RestController
@RequestMapping("type")
public class TypeController {
    @Autowired
    private TypeService typeService;


    @GetMapping("queryType")
    public TongyiData queryType() {
        return TongyiData.succeess(typeService.typeData());
    }


}
